package com.rong.raft.rpc.protocol;

import java.io.Serializable;

/**
 * @desc
 *
 * @author liurong
 *
 * @date 2020年3月10日
 */
public class HeartbeatRequest implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String leaderId;

	private long currTerm;

	public String getLeaderId() {
		return leaderId;
	}

	public void setLeaderId(String leaderId) {
		this.leaderId = leaderId;
	}

	public long getCurrTerm() {
		return currTerm;
	}

	public void setCurrTerm(long currTerm) {
		this.currTerm = currTerm;
	}

	@Override
	public String toString() {
		return "HeartbeatRequest [leaderId=" + leaderId + ", currTerm=" + currTerm + "]";
	}

}
